package com.xuecheng.api.media;

import com.xuecheng.api.media.model.dto.MediaDTO;
import com.xuecheng.api.media.model.qo.QueryMediaModel;
import com.xuecheng.api.media.model.vo.MediaVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

/**
 * <p></p>
 *
 * @Description:
 */
@Api(value = "媒资管理", tags = "媒资管理API",description = "对媒资信息进行管理")
public interface MediaApi {

    @ApiOperation("保存媒资信息")
    @ApiImplicitParam(name = "vo",value = "媒资信息保存",required = true,dataType = "MediaVO",paramType = "body")
    MediaDTO createMedia(MediaVO mediaVO);



    /**
     *     @ApiOperation("分页条件查询媒资基础信息")
     * @param params
     * @param model
     * @return
     */
    @ApiOperation("分页条件查询媒资基础信息")
    PageVO queryMediaList(PageRequestParams params, QueryMediaModel model);


    @ApiOperation("根据id查询媒资信息--远程调用")
    @ApiImplicitParam(name = "mediaId",value = "媒资id",required = true,dataType = "long",paramType = "path",example = "l")
    RestResponse<MediaDTO> getMediaById4s(Long mediaId);


    @ApiOperation("根据媒资id删除媒资数据")
    void removeMedia(Long mediaId);





}
